package com.mercury.ec.framework.air.core.client.dto.search.pat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * PAT Request DTO
 *
 * @author hesx
 */
@Schema(description = "管理后台 - PAT Request DTO")
@Data
@ToString(callSuper = true)
public class AirPatReqDTO {

    @Schema(description = "office号，不传取默认office号", example = "1024")
    private String officeNo;

    @Schema(description = "pnr", requiredMode = Schema.RequiredMode.REQUIRED, example = "DSKLKK")
    @NotBlank(message = "pnr不能为空")
    private String pnr;

    @Schema(description = "是否返回全部价格，默认返回最低价", example = "true")
    private Boolean all = false;

    @Schema(description = "用户自定义执行 PAT 时的指令行，例如 PAT:A*YD", example = "PAT:A*YD")
    private String patCmd;

    @Schema(description = "大客户编码，取运价时，如果是以大客户编码方式获取，则需指令该大客户编码，如大客户编码为12345678，则系统在获取运价时，会执行指令：PAT:A#C12345678", example = "PAT:A#C12345678")
    private String customerNo;
}
